package io.gitee.archx.sc.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HelloController
 *
 * @author Archx[archx@foxmail.com]
 * at 2018/7/24 20:58
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/{name}")
    public String index(@PathVariable("name") String name) {
        return "Hello, " + name;
    }
}
